
    {{# readonly snippets highlight:   http://alexgorbatchev.com/SyntaxHighlighter/manual/api/autoloader.html }}
    {{#~ response.files.append(URL(request.application,'static','syntaxhighlighter') +'/src/shCore.js')}}
    {{#~ response.files.append(URL(request.application,'static','syntaxhighlighter') +'/src/shAutoloader.js')}}
    {{# readonly snippets highlight:   http://alexgorbatchev.com/SyntaxHighlighter/manual/api/autoloader.html }}

    {{ files_before_highlighter = len(response.files) }}
    {{response.files.append(URL(request.application,'static','syntaxhighlighter/src/xregexp.js')) }}
    {{response.files.append(URL(request.application,'static','syntaxhighlighter/src/shCore.js')) }}
    {{response.files.append(URL(request.application,'static','syntaxhighlighter/src/shAutoloader.js')) }}
    {{response.files.append(URL(request.application,'static','syntaxhighlighter/styles/shCore.css')) }}
    {{response.files.append(URL(request.application,'static','syntaxhighlighter/styles/shThemeDefault.css')) }}

    {{
for _file in response.files[files_before_highlighter:] or []:
  if _file[-4:].lower()=='.css':}}
     <link href="{{=_file}}" rel="stylesheet" type="text/css" />{{
  elif _file[-3:].lower()=='.js':}}
     <script src="{{=_file}}" type="text/javascript"></script>{{
  pass
pass

    }}

    {{ path = URL(request.application,'static','syntaxhighlighter/scripts/') }}
    {{ brushes_info = """
      'applescript            @shBrushAppleScript.js',
	  'actionscript3 as3      @shBrushAS3.js',
	  'bash shell             @shBrushBash.js',
	  'coldfusion cf          @shBrushColdFusion.js',
	  'cpp c                  @shBrushCpp.js',
	  'c# c-sharp csharp      @shBrushCSharp.js',
	  'css                    @shBrushCss.js',
	  'delphi pascal pas      @shBrushDelphi.js',
	  'diff patch             @shBrushDiff.js',
	  'erl erlang             @shBrushErlang.js',
	  'groovy                 @shBrushGroovy.js',
	  'java                   @shBrushJava.js',
	  'jfx javafx             @shBrushJavaFX.js',
	  'js jscript javascript  @shBrushJScript.js',
	  'perl pl                @shBrushPerl.js',
	  'php                    @shBrushPhp.js',
	  'text plain             @shBrushPlain.js',
	  'py python              @shBrushPython.js',
	  'ruby rails ror rb      @shBrushRuby.js',
	  'sass scss              @shBrushSass.js',
	  'scala                  @shBrushScala.js',
	  'sql                    @shBrushSql.js',
	  'vb vbnet               @shBrushVb.js',
	  'xml xhtml xslt html    @shBrushXml.js'
	  """.replace('@', str(path) )
	  # might limit to only languages availabe in DB
    }}

<!--
 ku ku
    {{="labas 'rytas'"}}    
    {{=XML("labas 'rytas'") }}
-->

    <script type="text/javascript">
    //$(document).ready=function(){    };
	    SyntaxHighlighter.autoloader(
	     {{=XML(brushes_info)}}
	    );
        SyntaxHighlighter.all();
    
	    
    </script>    
    
<!--

    {{# readonly snippets highlight:   http://google-code-prettify.googlecode.com/svn/trunk/README.html }}
    should be inserted before web2py_ajax.html
    {{#~ response.files.append(URL(request.application,'static','google-code-prettify/prettify.css'))}}
    {{#~ response.files.append(URL(request.application,'static','google-code-prettify/prettify.js'))}}

    {{# probably should be called after web2py_ajax }}
    <script type="text/javascript"> document.body.onload ="prettyPrint();"</script>
-->
